class prog{
         
          // prime no or not

          public static void main(String args[]) 
          {
          int num =34,flag =0,i;
          for(i=2;i<=num;i++)
          {
          if(num % i == 0)
          {
          System.out.println(num+ " is not a prime number");
          break;
          } 
          else
          {
System.out.println(num+ " is a prime number");
          break;
          }
        }         
       } 
 }